home *** CD-ROM | disk | FTP | other *** search
Text File | 1996-11-19 | 1.7 KB | 53 lines | [TEXT/MPS ] |
- /*
- File: SampleLibrary.exp
-
- Contains: Library and FunctionSet declarations for CCPlusSampleLibrary
-
- Copyright: © 1993 by Apple Computer, Inc., all rights reserved.
-
- */
-
-
- #include <LibraryManager.h>
- #include "SampleLibrary.h"
-
- /*————————————————————————————————————————————————————————————————————————————————————
- Library declarations defines the ID of the shared library and the version.\
- initproc(optional) "C" routine to be called immediately after loading
- cleanupProc(optional) "C" routine to be called after library is unloaded
- flags(optional)
- noSegUnload The segments of the shared library cannot be unloaded.
- preload All segments of the shared library should be loaded at
- library load time.
- id(required) Defines the ID of the library
- version(required) Defines the version of the library.
- memory(optional) The default pool memory allocation will be the
- client from client pool.
- local from local pool
- ————————————————————————————————————————————————————————————————————————————————————*/
-
- Library
- {
- id = kTrafficLightLibID;
- version = 1.1;
- memory = client;
- };
-
- /*————————————————————————————————————————————————————————————————————————————————————
- Declarations of functions we want to export. If functions where pascal function,
- we need to put the pascal keyword in front of the function name.
- ————————————————————————————————————————————————————————————————————————————————————*/
-
- FunctionSet TrafficLight
- {
- id = kTrafficLightFunctionSet;
- version = 1.1;
- exports = NewTrafficLight,
- FreeTrafficLight,
- GetLightState,
- SetLightState,
- DrawLight,
- AdjustTrafficLightMenus,
- DoTrafficLightMenuCommand;
- };
-